package com.fingard.dsp.bank.reqrespobj.billpool;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RetAtsBase;
import com.fingard.dsp.bank.reqrespobj.billpool.Detail.RetAtsB302InPoolPledgeDetail;
import com.fingard.xml.XmlTextWriter;

/*入池质押*/
public class RetAtsB302InPoolPledge extends RetAtsBase {
    public String RespCode;
    public String RespInfo;


    public RetAtsB302InPoolPledge(ReqRespHeader p_header) {
        retHeader = p_header;
        retXmlWriter = new XmlTextWriter();//用于输出返回ATS的XML报文
    }

    public void writeRetAtsXml(RetAtsB302InPoolPledge B302) {
        retXmlWriter.writeElementString("RespCode", B302.RespCode);
        retXmlWriter.writeElementString("RespInfo", B302.RespInfo);
        writeEnd();
    }

    public void wirteRetDetail(RetAtsB302InPoolPledgeDetail detail) {
        retXmlWriter.writeStartElement("DetailRecord");
        retXmlWriter.writeElementString("RespCode", detail.RespCode);
        retXmlWriter.writeElementString("RespInfo", detail.RespInfo);
        retXmlWriter.writeElementString("TransState", detail.TransState);
        retXmlWriter.writeElementString("PayInfoCode", detail.PayInfoCode);
        retXmlWriter.writeElementString("ReqSeqID", detail.ReqSeqID);
        retXmlWriter.writeElementString("AccountNum", detail.AccountNum);
        retXmlWriter.writeEndElement();
    }
}
